
import { createApp } from 'vue'

import App from './App.vue'
import ElementPlus from 'element-plus'
import '../assets/icon.js'
import '../assets/css/index.css'
import 'element-plus/dist/index.css';

import 'dayjs/locale/zh-cn'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
const app = createApp(App)
app.use(ElementPlus, { locale: zhCn })
app.mount('#app')

const win: any = window // 
if (process.env.NODE_ENV === 'development') {
    if ('__VUE_DEVTOOLS_GLOBAL_HOOK__' in win) {
        // 这里__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue赋值一个createApp实例
        win.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = app
    }
}

